﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="{$cfg_site_description}" />

<title>{$cfg_site_name}</title>
{template 'header'}
<body>
<div id="sysmsg-error-box" style="top:157px;display: none;">
		<div class="sysmsgw hidd" id="sysmsg-error" style="display: block;">
			<div class="sysmsg"><span>{$ERROR_MSG}</span><span class="close">關閉</span></div>
		</div>
		<div class="sysmsgw hidd" id="sysmsg-success" style="display: none;">
			<div class="sysmsg"><span></span><span class="close">關閉</span></div>
		</div>
</div>
<div id="buy917_wrap">
    <div id="buy917_header">
    	<div id="buy917_logo"><a href="index.php">Buy917</a></div>
        <div class="buy917_header_banner">
        	<div class="buy917_header_topbanner">
            		{template 'login_line'} <!-- login_line.html 登入/註冊按鈕 --> 
					<?php include("admin/event.php")?>
            </div>
          	<div class="buy917_header_select">
            	<div class="buy917_header_city">
                	 {if !empty($_cityid)}
                    <div class="guides">
                        <div class="city">
                            <h2>{$_cityname}</h2>
                        </div>
                        <div id="guides-city-change" class="change">切換城市</div>
                        <div id="guides-city-list" class="city-list">
                            <ul>
                            {loop $_citylist $v}
                                <li {if $v['cid']==$_cityid}class="current"{/if}><a href="index.php?cityid={$v['cid']}">{$v['cityname']}</a></li>
                            {/loop}
                            </ul>                   
                        </div>
                    </div>
                    {/if}	
                </div>
                <div class="buy917_header_group">
                	{template 'headergroup'}	
                </div>
            </div>
       </div>
    </div><!-- buy917_header -->
  
   {template 'menu_nav'} <!-- menu 導覽頁 --> 
       
    <div id="buy917_middle">
        	<div class="buy917_grouplist_top"></div>      
            <div class="buy917_grouplist_body"> 
               <h2>會員登入<span>&nbsp;或者 <a href="reg.php">註冊新帳號</a></span></h2>
        		   <div class="sect">
                    <form id="login-user-form" method="post" action="login.php">
                        <div class="field">
                            <label for="login-email-address">用戶名稱</label>
                            <input tabindex="1" type="text" size="30" name="user" id="login-email-address" class="f-input" value=""/>
                        </div>
                        <div class="field password">
                            <label for="login-password">密  碼</label>
                            <input tabindex="2" type="password" size="30" name="password" id="login-password" class="f-input" />

                            <span class="lostpassword"><a href="resetp.php">忘記密碼?</a></span> 
                        </div>
                        <div class="field autologin">
                            <input tabindex="3" type="checkbox" value="1" name="auto_login" id="autologin" class="f-check"/>
                            <span for="autologin">下次自動登錄</span>
                        </div>
                        <div class="act">
                            <input tabindex="4" type="submit" value="登入" name="commit" id="login-submit" class="formbutton"/>

                        </div>
                    </form>
                </div>
                
                <div class="sbox-content">
                <div class="side-tip">
                    <h2>還沒有{$cfg_site_name}帳戶？</h2>
                    <p>立即<a href="/reg.php">註冊新帳號</a>，僅需30秒！</p>
                </div>
            </div>
            </div><!-- buy917_grouplist_body -->
            <div class="buy917_grouplist_bottom"></div>
    </div><!-- buy917_middle -->
</div><!-- buy917wrap -->
<!-- footer -->

<script type="text/javascript">
jQuery(function($){
	$("#login-submit").click(function(){
		if($.trim($("#login-email-address").val()).length == 0)
		{
			$.showErr("請輸入您的會員帳號");
			$("#login-email-address").focus();
			return false;
		}
		if($.trim($("#login-password").val()).length == 0)
		{
			$.showErr("請輸入您的密碼");
			$("#login-email-address").focus();
			return false;
		}
	
	});
});
</script>
<div id="buy917_footer">
	{template 'footer'}	
</div>
</body>
</html>
